﻿using OpenCvSharp;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace mrs_copy.common
{
    public class Config
    {

        //当前摄像头
        public VideoCapture capture;
        //视频打开关闭状态
        public bool IsPlay = false;
        //当前图片
        public Mat image;
        //当前视频
        public Mat imageVideo;

        //视频播放线程
        public Thread Video_thread;
        //摄像头设备号，默认0，可根据下拉框调整
        public int VideoCapture_id = 0;


        //配置文件目录
        /*public string fileName = @"config\appSetting.json";*/
        public static string path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\mrs\\appSetting.json";

        //裁剪坐标数据
        public int x = 0; 
        public int y = 0; 
        public int width = 100; 
        public int height = 100;
        //图片大小
        public int sizeX = 100; 
        public int sizeY = 100;
        //填充颜色
        public Scalar color;
        

        //是否重拍
        public Boolean isReCapture = false;

        //保存图片的格式及质量
        public String saveType = "jpg";
        public int jpgQuality = 30;
        public int pngQuality = 3;

        //当前文件保存路径
        public  String curPath = @"d:/";

        //当前文件保存根路径
        public String rootPath = @"d:\";

        //当前病案号
        public String curPtNo = "";

        //当前目录文件序列号,更换病案时，重置1
        public int curNum = 1;

        //当前目录列表
        public ArrayList catalist=new ArrayList();

        //当前选择的目录
        public int curCata = 1;

        //当前翻拍日期
        public DateTime curDate = DateTime.Now;


        //上传服务器IP地址
        public String ipAddress = @"\\192.168.12.134\a";


        //上传服务器用户名
        public String ipName = "Administrator";
        //上传服务器密码
        public String ipPwd = "";
        //是否连接（，1 连接。0 不连接）
        public String isOpen = "1";


    }
}
